New Functions in Week 10

filter

{dplyr}

Filter out rows of a data frame according to logical vector

nobs

{gdata}

Compute the number of non-missing observations

resid

{stats}

Extracts model residuals from objects returned by modeling functions

sample_frac

{dplyr}

Sample a fraction of observations from a data frame

coeftest

{lmtest}

Inference for Estimated Coefficients

pchisq

{stats}

Gives the distribution function of the chi-squared distribution

bptest

{lmtest}

Breusch-Pagan Test for Homoscedasticity

vcovHC

{sandwich}

Heteroscedasticity-consistent estimation of the covariance matrix of the coefficient estimates

set.seed

{base}

Initialise a pseudorandom number generator.

vif

{car}

Calculate Variance Inflation Factor

select

{dplyr}

Select columns from a tibble/data frame

The end!